package com.yugao.fintech.antelope.mps.model.rqrs.task;

import com.yugao.fintech.antelope.base.model.constants.ValidationCons;
import com.yugao.fintech.antelope.mps.api.constatnts.MsgCons;
import com.yugao.fintech.antelope.mps.model.entity.MsgPushTask;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.Collections;
import java.util.List;


@Data
public class PushTaskBase {
    @ApiModelProperty(value = "状态, 启用/禁用")
    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    private String status;

    /**
     * @see MsgCons.ReceiverType
     */
    @ApiModelProperty(value = "接收人类型")
    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    private String receiverType;

    @ApiModelProperty(value = "任务名称")
    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    private String name;

    @ApiModelProperty(value = "消息功能组id")
    private String groupId;

    /**
     * @see MsgPushTask.TemplateVarDefine
     */
    @ApiModelProperty(value = "消息任务使用的模板变量定义, json格式")
    private List<MsgPushTask.TemplateVarDefine> tplVarDefines = Collections.emptyList();

    @ApiModelProperty(value = "备注")
    private String remark;
}
